package com.bykj.property.sys.dao;

import com.bykj.property.sys.controller.vo.ValidateInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author yiming
 * @title: ValidateDao
 * @projectName property
 * @description: TODO
 * @date 2019/6/2716:02
 */
public interface ValidateDao {
    @Select("SELECT count(1) FROM ${validateTable} WHERE ${validateField}=#{validateValue}")
    int uniqueValidateAdd(ValidateInfo info);
    @Select("SELECT count(1) FROM ${validateTable} WHERE ${validateField}=#{validateValue} and ${validateFieldId} != #{validateIdValue}")
    int uniqueValidateUpdate(ValidateInfo info);
}
